# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'C:\Documents and Settings\gandhi\My Documents\My Dropbox\Magnetometer\QtMagnet\main.ui'
#
# Created: Sun May 24 12:58:12 2009
#      by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_mainWin(object):
    def setupUi(self, mainWin):
        mainWin.setObjectName("mainWin")
        mainWin.setWindowModality(QtCore.Qt.NonModal)
        mainWin.resize(1026, 777)
        self.centralwidget = QtGui.QWidget(mainWin)
        self.centralwidget.setObjectName("centralwidget")
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(0, 0, 1031, 741))
        self.tabWidget.setObjectName("tabWidget")
        self.Tab_sub = QtGui.QWidget()
        self.Tab_sub.setObjectName("Tab_sub")
        self.groupTab = QtGui.QGroupBox(self.Tab_sub)
        self.groupTab.setGeometry(QtCore.QRect(0, 200, 481, 481))
        self.groupTab.setObjectName("groupTab")
        self.horizontalLayoutWidget = QtGui.QWidget(self.groupTab)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 30, 461, 431))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtGui.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.tabMag = QtGui.QTableWidget(self.horizontalLayoutWidget)
        self.tabMag.setObjectName("tabMag")
        self.tabMag.setColumnCount(0)
        self.tabMag.setRowCount(0)
        self.horizontalLayout.addWidget(self.tabMag)
        self.groupBox_2 = QtGui.QGroupBox(self.Tab_sub)
        self.groupBox_2.setGeometry(QtCore.QRect(490, 0, 531, 681))
        self.groupBox_2.setObjectName("groupBox_2")
        self.qPlot = QwtPlot(self.groupBox_2)
        self.qPlot.setGeometry(QtCore.QRect(10, 30, 501, 151))
        self.qPlot.setObjectName("qPlot")
        self.qPlot_2 = QwtPlot(self.groupBox_2)
        self.qPlot_2.setGeometry(QtCore.QRect(10, 190, 501, 151))
        self.qPlot_2.setObjectName("qPlot_2")
        self.qPlot_3 = QwtPlot(self.groupBox_2)
        self.qPlot_3.setGeometry(QtCore.QRect(10, 350, 501, 151))
        self.qPlot_3.setObjectName("qPlot_3")
        self.qPlot_4 = QwtPlot(self.groupBox_2)
        self.qPlot_4.setGeometry(QtCore.QRect(10, 510, 501, 151))
        self.qPlot_4.setObjectName("qPlot_4")
        self.groupBox = QtGui.QGroupBox(self.Tab_sub)
        self.groupBox.setGeometry(QtCore.QRect(0, 0, 481, 181))
        self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.groupBox.setFlat(False)
        self.groupBox.setCheckable(False)
        self.groupBox.setObjectName("groupBox")
        self.gridLayoutWidget = QtGui.QWidget(self.groupBox)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 30, 451, 130))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setObjectName("gridLayout")
        self.lineK3 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK3.setObjectName("lineK3")
        self.gridLayout.addWidget(self.lineK3, 2, 0, 1, 1)
        self.lineK4 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK4.setObjectName("lineK4")
        self.gridLayout.addWidget(self.lineK4, 3, 0, 1, 1)
        self.lineK2 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK2.setObjectName("lineK2")
        self.gridLayout.addWidget(self.lineK2, 1, 0, 1, 1)
        self.lineK1 = QtGui.QLineEdit(self.gridLayoutWidget)
        self.lineK1.setObjectName("lineK1")
        self.gridLayout.addWidget(self.lineK1, 0, 0, 1, 1)
        self.btnK1 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK1.setObjectName("btnK1")
        self.gridLayout.addWidget(self.btnK1, 0, 1, 1, 1)
        self.btnK2 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK2.setObjectName("btnK2")
        self.gridLayout.addWidget(self.btnK2, 1, 1, 1, 1)
        self.btnK3 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK3.setObjectName("btnK3")
        self.gridLayout.addWidget(self.btnK3, 2, 1, 1, 1)
        self.btnK4 = QtGui.QPushButton(self.gridLayoutWidget)
        self.btnK4.setObjectName("btnK4")
        self.gridLayout.addWidget(self.btnK4, 3, 1, 1, 1)
        self.tabWidget.addTab(self.Tab_sub, "")
        self.Tab_an = QtGui.QWidget()
        self.Tab_an.setObjectName("Tab_an")
        self.qPlot_fft = QwtPlot(self.Tab_an)
        self.qPlot_fft.setGeometry(QtCore.QRect(200, 0, 501, 171))
        self.qPlot_fft.setObjectName("qPlot_fft")
        self.qPlot_fft_2 = QwtPlot(self.Tab_an)
        self.qPlot_fft_2.setGeometry(QtCore.QRect(200, 180, 501, 171))
        self.qPlot_fft_2.setObjectName("qPlot_fft_2")
        self.qPlot_fft_3 = QwtPlot(self.Tab_an)
        self.qPlot_fft_3.setGeometry(QtCore.QRect(200, 360, 501, 171))
        self.qPlot_fft_3.setObjectName("qPlot_fft_3")
        self.qPlot_fft_4 = QwtPlot(self.Tab_an)
        self.qPlot_fft_4.setGeometry(QtCore.QRect(200, 540, 501, 171))
        self.qPlot_fft_4.setObjectName("qPlot_fft_4")
        self.tabWidget.addTab(self.Tab_an, "")
        self.tab_algo = QtGui.QWidget()
        self.tab_algo.setObjectName("tab_algo")
        self.plotWidget = MPL_Widget(self.tab_algo)
        self.plotWidget.setGeometry(QtCore.QRect(150, 20, 563, 393))
        self.plotWidget.setObjectName("plotWidget")
        self.pushButton = QtGui.QPushButton(self.tab_algo)
        self.pushButton.setGeometry(QtCore.QRect(30, 30, 75, 24))
        self.pushButton.setObjectName("pushButton")
        self.tabWidget.addTab(self.tab_algo, "")
        mainWin.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(mainWin)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1026, 19))
        self.menubar.setObjectName("menubar")
        self.menuS_bor = QtGui.QMenu(self.menubar)
        self.menuS_bor.setObjectName("menuS_bor")
        self.menuO_aplik_cii = QtGui.QMenu(self.menubar)
        self.menuO_aplik_cii.setObjectName("menuO_aplik_cii")
        mainWin.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(mainWin)
        self.statusbar.setObjectName("statusbar")
        mainWin.setStatusBar(self.statusbar)
        self.actionOtvori = QtGui.QAction(mainWin)
        self.actionOtvori.setObjectName("actionOtvori")
        self.actionKoniec = QtGui.QAction(mainWin)
        self.actionKoniec.setObjectName("actionKoniec")
        self.actionUlo = QtGui.QAction(mainWin)
        self.actionUlo.setObjectName("actionUlo")
        self.menuS_bor.addAction(self.actionOtvori)
        self.menuS_bor.addAction(self.actionUlo)
        self.menuS_bor.addSeparator()
        self.menuS_bor.addAction(self.actionKoniec)
        self.menubar.addAction(self.menuS_bor.menuAction())
        self.menubar.addAction(self.menuO_aplik_cii.menuAction())

        self.retranslateUi(mainWin)
        self.tabWidget.setCurrentIndex(2)
        QtCore.QObject.connect(self.actionKoniec, QtCore.SIGNAL("activated()"), mainWin.close)
        QtCore.QMetaObject.connectSlotsByName(mainWin)

    def retranslateUi(self, mainWin):
        mainWin.setWindowTitle(QtGui.QApplication.translate("mainWin", "Magnetometer", None, QtGui.QApplication.UnicodeUTF8))
        self.groupTab.setTitle(QtGui.QApplication.translate("mainWin", "Tabuľka", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox_2.setTitle(QtGui.QApplication.translate("mainWin", "Priebehy", None, QtGui.QApplication.UnicodeUTF8))
        self.groupBox.setTitle(QtGui.QApplication.translate("mainWin", "Súbory", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK1.setText(QtGui.QApplication.translate("mainWin", "Otvor K1", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK2.setText(QtGui.QApplication.translate("mainWin", "Otvor K2", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK3.setText(QtGui.QApplication.translate("mainWin", "Otvor K3", None, QtGui.QApplication.UnicodeUTF8))
        self.btnK4.setText(QtGui.QApplication.translate("mainWin", "Otvor K4", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Tab_sub), QtGui.QApplication.translate("mainWin", "Nastavenie", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.Tab_an), QtGui.QApplication.translate("mainWin", "Analýza signálov", None, QtGui.QApplication.UnicodeUTF8))
        self.pushButton.setText(QtGui.QApplication.translate("mainWin", "Start", None, QtGui.QApplication.UnicodeUTF8))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_algo), QtGui.QApplication.translate("mainWin", "Algoritmus", None, QtGui.QApplication.UnicodeUTF8))
        self.menuS_bor.setTitle(QtGui.QApplication.translate("mainWin", "Súbor", None, QtGui.QApplication.UnicodeUTF8))
        self.menuO_aplik_cii.setTitle(QtGui.QApplication.translate("mainWin", "O aplikácii", None, QtGui.QApplication.UnicodeUTF8))
        self.actionOtvori.setText(QtGui.QApplication.translate("mainWin", "Otvoriť", None, QtGui.QApplication.UnicodeUTF8))
        self.actionKoniec.setText(QtGui.QApplication.translate("mainWin", "Koniec", None, QtGui.QApplication.UnicodeUTF8))
        self.actionUlo.setText(QtGui.QApplication.translate("mainWin", "Ulož", None, QtGui.QApplication.UnicodeUTF8))

from mpl_pyqt4_widget import MPL_Widget
from PyQt4.Qwt5 import QwtPlot

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    mainWin = QtGui.QMainWindow()
    ui = Ui_mainWin()
    ui.setupUi(mainWin)
    mainWin.show()
    sys.exit(app.exec_())

